package planner

import grails.test.*

class DateTagLibTests extends TagLibUnitTestCase {
    
    def dateTagLib
        
    protected void setUp() {
        super.setUp()
        dateTagLib = new DateTagLib()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testThisYear() {
        String expected = Calendar.getInstance().get(Calendar.YEAR)
        String tagLib = dateTagLib.thisYear()
        println "Expected:" + expected
        println "TagLib:" + tagLib
        assertEquals("the years don't match", expected, tagLib)
    }

}
